package com.javacoo.xservice.example.service.impl;

import com.javacoo.xservice.base.support.auth.AuthService;
import com.javacoo.xservice.base.utils.LogUtil;

import lombok.extern.slf4j.Slf4j;

/**
 * 授权服务实现
 * <li></li>
 *
 * @author: duanyong@jccfc.com
 * @since: 2021/3/3 13:40
 */
@Slf4j
public class AuthServiceImpl implements AuthService {

    /**
     * 授权
     * <li></li>
     *
     * @param o : 参数
     * @author duanyong@jccfc.com
     * @date 2021/3/2 18:11
     * @return: void true-> 成功
     */
    @Override
    public boolean auth(Object o) {
        LogUtil.info("授权:{}", o);
        return true;
    }

    /**
     * 检查
     * <li></li>
     *
     * @param o : 参数
     * @author duanyong@jccfc.com
     * @date 2021/4/14 13:17
     * @return: boolean true-> 成功
     */
    @Override
    public boolean check(Object o) {
        LogUtil.info("检查:{}", o);
        return true;
    }
}
